﻿@model yq.WebModel.UserLogin
@Url.Css("Css/metro/css/Index.css")
@Url.Script("Scripts/metro/index.js")

<script>
    function LoginTips(obj)
    {
        if (obj.Status == 1) 
        {
            window.location = '@(Url.Action("Index"))';

        } else
        {
            $.tips(obj.ErrorText);
        }

    }
</script>
<div>
    @using (Ajax.BeginForm("Dologin", new { }, new AjaxOptions { HttpMethod = "post", OnSuccess = "LoginTips" }))
    {
    
        <ul class="thumbnails">
            <li class="span3" style="float: right; padding-right: 20%;">
                <div class="divlistFormList" style="width:350px;top:5%;position:absolute;padding-left:40px">
                    @Html.LabelFor(obj => obj.Account, "账号")@Html.TextBoxFor(obj => obj.Account)
                    @Html.LabelFor(obj => obj.Pwd, "密码")@Html.PasswordFor(obj => obj.Pwd)
                    <div class="caption">
                        <p>@Html.Button("登 录")</p>
                    </div>
                </div>
            </li>
        </ul>

    }
</div>
<div  >
    <ul class="thumbnails">
        <li class="span3" style="float:left; padding-left: 10%;">
            <div class="divlistFormList" style="width:350px; height:120px; padding-top:20px;top:60%;position:absolute;">
               <h1 style=" font-size:80px; margin-top:5px" id="htime"  >11:11</h1>  
               <h3 style="margin-top:20px;" id="dtime" >01月01日 星期六</h3>
            </div>

</li> </ul> 

</div>
<script>

    function GetTime() 
    {
        var myDate = new Date();

        var minutes=myDate.getMinutes();

        if(10>minutes)
        {
            minutes="0"+minutes;
        }


        $("#htime").html(myDate.getHours() + ":" + minutes);

        $("#dtime").html((myDate.getMonth() + 1) + "月" + myDate.getDate() + "日  星期" + '日一二三四五六'.charAt(myDate.getDay()));
    }

    $(GetTime)

    $(function () { setInterval("GetTime()", 1000) })

</script>